package org.mx.dal.hibernate.single.repository;

import java.util.List;

import org.mx.dal.hibernate.single.entity.OrgEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@SuppressWarnings("javadoc")
@Repository
public interface UserRepository extends CrudRepository<OrgEntity, String> {
    @Query("select u from User  u where u.email like %?1%")
    public List<OrgEntity> getLikeEmail(String email);
}
